package tech.aistar.design.decorator;

/**
 * 本类用来演示:
 *
 * @author: success
 * @date: 2021/3/24 1:57 下午
 */
public class TestMikl {
    public static void main(String[] args) {
        //1. 创建节点流对象
        Milk milk = new NaiTea();
        System.out.println(milk.getPrice()+","+milk.getBrand());

        //2. 构建口味更加丰富的包装奶茶
        BuDingTea buDingTea = new BuDingTea(milk);
        System.out.println(buDingTea.getBrand()+":"+buDingTea.getPrice());
    }
}
